package com.meteor.service;

import com.meteor.entity.Building;
import com.meteor.entity.Unit;
import com.meteor.framework.common.utils.PageResult;
import com.meteor.framework.mybatis.service.BaseService;
import com.meteor.query.BuildingQuery;
import com.meteor.query.OrgAndCommunityQuery;
import com.meteor.query.UnitQuery;
import com.meteor.vo.BuildingVO;
import com.meteor.vo.UnitVO;

import java.util.List;

/**
 * @author lynn
 * @date 2024/1/22
 */

public interface UnitService extends BaseService<Unit> {


    void save(UnitVO vo);

    void update(UnitVO vo);

    UnitVO get(String id);

    List<UnitVO> getList(UnitQuery query);

    PageResult<UnitVO> page(UnitQuery query);

    void delete(String id);

    List<UnitVO> buildingUnit(OrgAndCommunityQuery query);

}
